package com.efamily.ewallet.client.common;

import java.util.HashMap;
import java.util.Map;

import com.extjs.gxt.ui.client.event.EventType;

public class CustomEventType extends EventType {

	private static Map<Integer, EventType> events = new HashMap<Integer, EventType>();
	private CustomEventType() {
	}

	private CustomEventType(CustomEvents event) {
		
	}

	@Override
	public int hashCode() {
		return getEventCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null)
			return false;
		if (obj == this)
			return true;
		if (obj.getClass() != getClass())
			return false;
		return ((CustomEventType) obj).getEventCode() == this.getEventCode();
	}

}
